package yzserver.sx4a.form;


import yzserver.sx4a.domain.PermissionDomain;

public class Permission {

    private String permissionid;        //权限ID
    private String permissionname;      //权限中英文名称
    private String permissiontype;      //权限类型 1.功能权限 2数据权限
    private String permissionparent;    //上级权限ID
    private String permissiondes;       //权限描述
    private String permissionurl;       //权限访问地址
    private String enable;              //权限是否有效
    private String opuser;              //操作人信息

    public Permission(){

    }
    public Permission(PermissionDomain domain){
        this.permissionid = domain.getPERMISSIONID();
        this.permissionname = domain.getPERMISSIONNAME();
        this.permissiontype = domain.getPERMISSIONTYPE();
        this.permissionparent = domain.getPERMISSIONPARENT();
        this.permissiondes = domain.getPERMISSIONDES();
        this.permissionurl = domain.getPERMISSIONURL();
        this.enable = domain.getENABLE();
        this.opuser = domain.getOPUSER();
    }
    public String getPermissionid() {
        return permissionid;
    }

    public void setPermissionid(String permissionid) {
        this.permissionid = permissionid;
    }

    public String getPermissionname() {
        return permissionname;
    }

    public void setPermissionname(String permissionname) {
        this.permissionname = permissionname;
    }

    public String getPermissiontype() {
        return permissiontype;
    }

    public void setPermissiontype(String permissiontype) {
        this.permissiontype = permissiontype;
    }

    public String getPermissionparent() {
        return permissionparent;
    }

    public void setPermissionparent(String permissionparent) {
        this.permissionparent = permissionparent;
    }

    public String getPermissiondes() {
        return permissiondes;
    }

    public void setPermissiondes(String permissiondes) {
        this.permissiondes = permissiondes;
    }

    public String getPermissionurl() {
        return permissionurl;
    }

    public void setPermissionurl(String permissionurl) {
        this.permissionurl = permissionurl;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getOpuser() {
        return opuser;
    }

    public void setOpuser(String opuser) {
        this.opuser = opuser;
    }

}
